package hu.mapro.gwtui.gxt.client.ui;

import hu.mapro.gwtui.gxt.client.columnmodel.Builder;
import hu.mapro.gwtui.gxt.client.columnmodel.field.ReadOnlyAdapter;
import hu.mapro.gwtui.gxt.client.columnmodel.field.ReadWriteAdapter;
import hu.mapro.model.impl.ReadWriteField;
import hu.mapro.model.impl.ReadableField;

public class FieldColumnBuilder<T> extends Builder<T, ReadableField<T, ?, ?>, ReadWriteField<T, ?, ?>> {

	public FieldColumnBuilder() {
		super(new ReadOnlyAdapter<T, ReadableField<T, ?, ?>>(), new ReadWriteAdapter<T, ReadWriteField<T, ?, ?>>());
	}
	
	public static <T> FieldColumnBuilder<T> create() {
		return new FieldColumnBuilder<T>();
	}

}
